home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 627 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: qcd.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: mixing enums and integers
  5. Date: 8 Jan 1996 03:44:39 GMT
  6. Organization: Los Alamos National Laboratory
  7. Distribution: world
  8. Message-ID: <4cq3v7$q3m@newshost.lanl.gov>
  9. References: <4cij6k$dvb@yrkpa.kias.com> <DKtpIL.72z@eskimo.com>
  10. NNTP-Posting-Host: qcd.lanl.gov
  11.  
  12. In article <DKtpIL.72z@eskimo.com>, scs@eskimo.com (Steve Summit) writes:
  13. <snip>
  14. |>     typedef enum x enum_t;
  15. |>     enum x {...};
  16.  
  17. ANSI C forbids forward declaration of enums! The first reference to an enum
  18. tag _must_ define the members of the enumeration.
  19.  
  20. Cheers
  21. Tanmoy
  22. -- 
  23. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  24. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  25. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  26. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  27. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  28. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  29.